<extend name="Base:base" />
<block name="head">
</block>
<block name="title">{$title}</block>
<block name="content">   
    <div class="main-title">
        <h2>新增后台用户</h2>
    </div>
    <form action="" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">添加用户<span class="check-tips">（用于后台用户）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="username" value="">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">登陆密码<span class="check-tips">（用于后台用户登陆密码）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="password" value="">
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">所属角色<span class="check-tips">（用于后台用户所属角色）</span></label>
            <div class="controls">
                <select name="role_id[]">
                    <foreach name="roles" item="role">
                        <option value="{$role.id}">{$role.name}({$role.remark})</option>
                    </foreach>
                </select>
            </div>
        </div>
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">保存添加</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);
                    return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('user')}');
    </script>
</block>
